home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / hsc / source / ugly / utime.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-02  |  1.4 KB  |  50 lines

  1. /*
  2.  * This source code is part of hsc, a html-preprocessor,
  3.  * Copyright (C) 1993-1997  Thomas Aglassinger
  4.  *
  5.  * This program is free software; you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation; either version 2 of the License, or
  8.  * (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  */
  20. /*
  21.  *
  22.  * utime.h
  23.  *
  24.  * header file for filename manipulaton functions
  25.  *
  26.  * (W) by Tommy-Saftwörx in 1996
  27.  *
  28.  */
  29.  
  30. #include "utypes.h"
  31. #include "expstr.h"
  32.  
  33. /* template used to store time in a string: YYYY/MM/DD HH:MM:SS */
  34. #define UGLY_TIME_TEMPLATE_SSCANF   "%04d/%02d/%02d %02d:%02d:%02d"
  35. #define UGLY_TIME_TEMPLATE_STRFTIME "%Y/%m/%d %H:%M:%S"
  36.  
  37. #define UGLY_TIMESTR_LEN (strlen(UGLY_TIME_TEMPLATE_SSCANF))
  38. /*
  39.  * external function prototypes
  40.  */
  41.  
  42. #ifndef NOEXTERN_UGLY_UTIME_H
  43.  
  44. extern VOID clrtime(struct tm *time);
  45. extern BOOL time2estr(EXPSTR * dest, struct tm *time);
  46. extern BOOL str2time(struct tm *time, STRPTR timestr);
  47.  
  48. #endif
  49.  
  50.